<div class="middle">
	<div class="simple-container-left" id="page:main-container">
		<div class="container" id="page:container">
			<div class="main">
				<div class="content-container">
					<div class="content" id="content">
						<div class="content-header">
							<table class="grid-header" cellspacing="0" border="0" >
								<tbody>
									<tr>
										<td style=""><h3 class="icon-head head-customer">Manage Loan</h3></td>
										<td class="a-right">
											<button type="button" class="scalable back" onclick="setLocation('loan.php')" style=""><span>Search</span></button>
										<!--
											<button type="button" class="scalable" onclick="setLocation(window.location.href)" style=""><span>Edit</span></button>
											<button type="button" class="scalable save" onclick="editForm.submit();" style=""><span>Add Payment</span></button>
										-->
                                                                                    </td>
									</tr>
								</tbody>
							</table>
						</div>
						<div id="messages"></div>

						<form name="form1" id="form1" action="/" method="post">
						<div class="entry-edit">
							<h4 class="icon-head head-edit-form fieldset-legend">Loan Information</h4>

                                                                    <table width="100%" border="0" cellspacing="0">

                                                                    <tr align="center">

                                                                        <td width="11%" style="background-color:#FFFF99"><span class="nobr"><a href="<?php echo $this->baseUrl; ?>/loan/borrower/id/1" name="id" class="sort-arrow-asc"><span class="sort-title">Borrower</span></a></span></td>
                                                                        <td width="11%" style="background-color:#FFFF99"><span class="nobr"><a href="<?php echo $this->baseUrl; ?>/loan/coborrower/id/2" name="id" class="sort-arrow-asc"><span class="sort-title">Co-Borrower</span></a></span></td>
                                                                        <td width="15%" style="background-color:#FFFF99"><span class="nobr"><a href="<?php echo $this->baseUrl; ?>/loan/business/id/1" name="id" class="sort-arrow-asc"><span class="sort-title">Business</span></a></span></td>
                                                                        <td width="15" style="background-color:#eeeeee"><span class="nobr"><a href="<?php echo $this->baseUrl; ?>/loan/collateral/id/1" name="id" class="sort-arrow-asc"><span class="sort-title">Collateral</span></a></span></td>
                                                                        <td width="9%" style="background-color:#FFFF99"><span class="nobr"><a href="<?php echo $this->baseUrl; ?>/loan/view/id/1" name="id" class="sort-arrow-asc"><span class="sort-title">Loan</span></a></span></td>
                                                                        <td width="9%" style="background-color:#FFFF99"><span class="nobr"><a href="<?php echo $this->baseUrl; ?>/loan/notes/id/1" name="id" class="sort-arrow-asc"><span class="sort-title">Notes</span></a></span></td>
                                                                        <td width="30%"></td>
                                                                    </tr>
								<table width="100%" cellspacing="10" border="0" style="background-color:#eeeeee" >
								<tbody>
							        <tr>
     							            <td>
                        	                                           <table width="100%" cellspacing="0" border="0">
									<tbody>
									<tr>
									    <td width="50%">
							    		        <table width="100%" cellspacing="5" border="0">
									               <tbody>
														<tr>
															<td>Collateral ID<span class="required">*</span></td>
															<td>1</td>
														</tr>
														<tr>
															<td>Borrower ID <span class="required">*</span></td>
															<td><input name="borrower_id" value="20080001" class="required-entry required-entry input-text" type="text"></td>
														</tr>
														<tr>
															<td>Item Description <span class="required">*</span></td>
															<td><textarea name="item_description" cols="30" rows="3">Sports car 1990</textarea></td>
														</tr>
														<tr>
															<td>Manufacturer</td>
															<td><input name="manufacturer" value="toyota" class="required-entry required-entry input-text" type="text"></td>
														</tr>
														<tr>
															<td>Model# <span class="required">*</span></td>
															<td><input name="model_no" value="GT150" class="required-entry required-entry input-text" type="text"></td>
														</tr>
														<tr>
															<td>Serial# <span class="required">*</span></td>
															<td><input name="serial_no" value="888" class="required-entry required-entry input-text" type="text"></td>
														</tr>
															<tr>
															<td>Date of Purchase <span class="required">*</span></td>
															<td><input name="purchase_date" value="1992" class="required-entry required-entry input-text" type="text"></td>
														</tr>
														<tr>
															<td>Collateral Status <span class="required">*</span></td>
															<td>
																<select name="collateral_status" class="required-entry required-entry select" type="select">
																<option value="1">Borrower in Possession</option>
																<option value="2">Borrower Not In Posession</option>
																<option value="1">Repossessed</option>
																<option value="2">For Sale</option>
                                                                                                                                    <option value="2">Sold</option>
																</select>
															</td>
														</tr>

											</tbody>
										</table>
                                                                                 </td>
									     <td width="50%">
									         <table width="100%" cellspacing="5" border="0">
													<tbody>
														<tr>
															<td align="right"><img src="<?php echo $this->baseUrl; ?>/arts/collateral.jpg" width="150" height="150" /></td>

															<td align="right"><input name="photo" value="" class="required-entry required-entry input-text" type="file"></td>
														</tr>
													</tbody>
										</table>
										 <table width="100%" cellspacing="5" border="0">

														<tr>
															<td>For Sale Price <span class="required">*</span></td>
															<td><input name="for_sale_price" value="200000" class="required-entry required-entry input-text" type="text"></td>
														</tr>
														<tr>
															<td>Sold Price </td>
															<td><input name="sold_price" value="" class="required-entry required-entry input-text" type="text"></td>
														</tr>
														<tr>
															<td>Amount returned to borrower <span class="required">*</span></td>
															<td><input name="amount_returned" value="" class="required-entry required-entry input-text" type="text"></td>
														</tr>
														<tr>
															<td>Amount kept for repayment <span class="required">*</span></td>
															<td>
																<input name="amount_kept" value="" class="required-entry required-entry input-text" type="text">
															</td>
														</tr>


                                                                                       </table>
									     </td>
									</tr>

									</tbody>
    	                                                         </table>
                                                                    </td>
                                                                    </tr>
                                                                    <tr>
                                                                    <td>
                                                                         </td>
                                                                    </tr>
									</tbody>
								</table>
								&nbsp;
								<div align="center">
								<button type="button" class="scalable" onclick="setLocation(window.location.href)" style=""><span>Reset</span></button>
								<button type="button" class="scalable save" onclick="editForm.submit();" style=""><span>Save Customer</span></button>
							</div>

						</div>


						</form>
					</div>
				</div>

				<div class="section-menu" id="page:left">
					<h3>Loan Center</h3>
					<ul id="loan_info_tabs" class="tabs">
						<li>
					        <a href="loan.php" title="Loan" class="tab-item-link active">
				            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
							</div>Loan</span>
					        </a>
					    </li>
					    <li>
					        <a href="#" title="View Loans" class="tab-item-link">
				            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
							</div>Payments</span>
					        </a>
					    </li>
					</ul>
					<div class="bottom"></div>
				</div>
          	</div>
		</div>
	</div>
</div>